package com.cet.regularexpression;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-06-18 17:10
 **/
public class Main01 {
    public static void main(String[] args) {
        String regex = "20\\d\\d";
        System.out.println("2019".matches(regex));
        System.out.println("2120".matches(regex));
    }
}
